package com.weigee.ktv.p;

import android.support.annotation.Nullable;

import com.alibaba.fastjson.JSONArray;
import com.l.d.app.library.mvp.BasePresenter;
import com.l.d.app.library.mvp.BaseView;
import com.weigee.ktv.m.entity.SystemInformsEntity;

import java.util.List;

/**
 * Created by linde on 2017/5/5.
 * <p/>
 */
public interface TaskDetailContract
{
    // FirstContent
    interface FirstContentPresenter extends BasePresenter
    {
    }

    interface FirstContentView extends BaseView<FirstContentPresenter>
    {
        void loadImage(String ivPageTop, String ivRoomReservation, String ivRequestSong, String ivSupermarket);
    }

    // AboutUs
    interface AboutUsPresenter extends BasePresenter
    {
    }

    interface AboutUsView extends BaseView<AboutUsPresenter>
    {
        // 设置版本信息
        void setPackageInfo(String versionInfo);
    }

    // SupermarketStore
    interface SupermarketStorePresenter extends BasePresenter
    {
    }

    interface SupermarketStoreView extends BaseView<SupermarketStorePresenter>
    {
    }

    // SupermarketChooseGoods
    interface SupermarketChooseGoodsPresenter extends BasePresenter
    {
    }

    interface SupermarketChooseGoodsView extends BaseView<SupermarketChooseGoodsPresenter>
    {
        void setGoodsTypeData(@Nullable JSONArray array);

        void setGoodsDetailData(@Nullable JSONArray array, boolean moreData);
    }

    // CommonProblems
    interface CommonProblemsPresenter extends BasePresenter
    {
    }

    interface CommonProblemsView extends BaseView<CommonProblemsPresenter>
    {
        void onResponseListData(JSONArray array, boolean moreData, boolean enableNextMore);
    }

    // SystemInforms
    interface SystemInformsPresenter extends BasePresenter
    {
    }

    interface SystemInformsView extends BaseView<SystemInformsPresenter>
    {
        void onResponseListData(List<SystemInformsEntity.DataBean> been, boolean moreData, boolean enableNextMore);
    }
}
